package com.training.admin.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dao;
import com.training.admin.dao.ProjectPhaseDao;
import com.training.admin.entity.project.Project;
import com.training.admin.entity.project.ProjectPhase;
import com.training.admin.service.ProjectPhaseService;

/**
 * 
 * @author Rockett
 *
 */
@Service("projectPhaseService")
public class ProjectPhaseServiceImpl extends DataServiceImpl<ProjectPhase> implements ProjectPhaseService{
    @Dao
    private ProjectPhaseDao projectPhaseDao;

	@Override
	public List<ProjectPhase> listByProjectId(Long projectId) {
		return projectPhaseDao.listByProjectId(projectId);
	}

    /* (non-Javadoc)
     * @see com.training.admin.service.ProjectPhaseService#listByProject(com.training.admin.entity.project.Project)
     */
    public List<ProjectPhase> listByProject(Project project) {
        return projectPhaseDao.listByProject(project);
    }

}
